package cn.kgc.eduorder;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName OrdersApplication
 * @Description: TODO
 * @Author :郭建宾
 * @Date 2020/7/17
 * @Version V1.0
 **/
@SpringBootApplication
@EnableDiscoveryClient //Nacos 注册
@EnableFeignClients //调用
@ComponentScan(basePackages = {"cn.kgc"})
@MapperScan("cn.kgc.eduorder.mapper")
public class OrdersApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrdersApplication.class);
    }
}
